package net.zz.base.validate.ann;

import net.zz.base.validate.constraintvalidators.QQValidator;

import javax.validation.Constraint;
import java.lang.annotation.*;

/**
 * Created by ZaoSheng on 2015/5/9.
 */
@Target({java.lang.annotation.ElementType.METHOD, java.lang.annotation.ElementType.FIELD, java.lang.annotation.ElementType.ANNOTATION_TYPE, java.lang.annotation.ElementType.CONSTRUCTOR, java.lang.annotation.ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(
        validatedBy = QQValidator.class
)
public @interface QQ {
    String message() default "must be a valid QQ";
    int erroCode() default 0;// 错误码
    Class<?>[] groups() default {};
}
